package com.enba.rbacadmin.module.auth.controller.req;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import lombok.Data;

/**
 * 用户表
 *
 * @author 恩爸编程
 * @since 2025-02-28
 */
@Data
@TableName("t_user")
@ApiModel(value = "UserAddUpdateReq", description = "用户新增，更新")
public class UserAddUpdateReq implements Serializable {

  private static final long serialVersionUID = 1L;

  @TableId(value = "id", type = IdType.AUTO)
  private Long id;

  @ApiModelProperty("用户名")
  @NotBlank(message = "用户名不能为空")
  private String username;

  @ApiModelProperty("手机号")
  private String mobile;

  @ApiModelProperty("邮箱")
  private String email;

  @ApiModelProperty("部门id")
  @NotNull(message = "部门id不能为空")
  private Long deptId;

  @ApiModelProperty("状态（0：可用 1：禁用）")
  @NotNull(message = "状态不能为空")
  private Integer status;
}
